/****************************************************
 * 													*
 * 					BanzaiP2P						*
 * 													*
 * Versione: 0.1.1									*
 * Autore: D'Annessa Marco							*
 * File: file_list_utility.h						*
 ****************************************************/


#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
#include <time.h>


struct file{

	char *name;
	int size;
	char *path;
	char type[3];
	time_t last_mod;
	int ID;

};

struct token{
	char *tok;
	struct token *next;

};

struct file_list{

	struct file *file;
	struct token *token_file_name;

	struct file_list *next;

};


struct token* make_token(char *);
struct file_list * create_list(char *);
int str_matching(char *, char *);
struct file_list* search_file(struct file_list *, struct token *);

